<template>
  <div class="home">
    <h1>home</h1>
    <p>{{ msg }}</p>
    <h2>{{ num }}</h2>
    <button @click="add">+</button>
  </div>
</template>

<script lang="ts">
import { defineComponent } from "vue";

export default defineComponent({
  data() {
    return {
      msg: "123",
      num: 0,
    };
  },
  name: "Home",
  components: {},
  methods: {
    add() {
      this.num += 1;
    },
  },
});
</script>
